home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / CyberDEFs 1.0.1 Folder / CyberDEFs / CyberDEFs.rsrc / TEXT_157_œTechnical • œUse • ”Activating.txt < prev    next >
Encoding:
Text File  |  1994-06-12  |  1018 b   |  21 lines

  1. HiliteControl is a toolbox call used in conjunction with CyberDEFs to activate and deactivate‚Äîin a variety of ways‚Äîits dependent controls.
  2.  
  3. ListCDEFs
  4.  
  5. HiliteControl theControl,0     - activates scroll bar
  6. HiliteControl theControl,255 - deactivates scroll bar
  7.  
  8. PictCDEFs
  9.  
  10. HiliteControl theControl,0     - sets to ID in init. fld.
  11. HiliteControl theControl,10   - sets to ID in min. fld.
  12. HiliteControl theControl,255 - sets to ID in max. fld.
  13.  
  14. TextCDEFs
  15.  
  16. HiliteControl theControl,0     - activates scroll/text
  17. HiliteControl theControl,255 - deactivates scroll/text
  18.  
  19. On switching to another app (or to another window within the same app) you'll receive App4 and Activate events. This is an ideal time to ask HiliteControl to enable and disable your TextCDEF and ListCDEF controls. In the case of PictCDEFs, you may want to use HiliteControl to "simulate" the pressing of pict-style buttons, but you don't really need to activate/deactivate them on switching out windows or applications.
  20.  
  21. See Àá "Events" for more info.